package com.qiangesoft.blog.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qiangesoft.blog.common.utils.DateUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 留言
 * </p>
 *
 * @author qiange
 * @since 2023-06-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class BlogLeaveMessage implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 内容
     */
    private String content;

    private String nickname;

    private String avatar;

    private String ipAddress;

    private String ipSource;

    private Integer time;

    /**
     * 状态 0:审核  1：正常
     */
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = DateUtils.FORMAT_STRING, timezone = "GMT+8")
    private LocalDateTime createTime;


}
